package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件管理对象 zy_files
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
public class Files extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件ID */
    private Long filesId;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String filesUrl;

    /** 删除状态0默认1删除 */
    private Integer delFlag;

    /** 来源0APP端，1PC端 */
    @Excel(name = "来源0APP端，1PC端")
    private Integer source;

    /** 父级ID */
    @Excel(name = "父级ID")
    private Long parentId;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long userId;

    public void setFilesId(Long filesId) 
    {
        this.filesId = filesId;
    }

    public Long getFilesId() 
    {
        return filesId;
    }
    public void setFilesUrl(String filesUrl) 
    {
        this.filesUrl = filesUrl;
    }

    public String getFilesUrl() 
    {
        return filesUrl;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setSource(Integer source) 
    {
        this.source = source;
    }

    public Integer getSource() 
    {
        return source;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("filesId", getFilesId())
            .append("filesUrl", getFilesUrl())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("delFlag", getDelFlag())
            .append("source", getSource())
            .append("remark", getRemark())
            .append("parentId", getParentId())
            .append("userId", getUserId())
            .toString();
    }
}
